package org.gpf.abstractFactory.human;

/**
 * 客户端-女娲
 * 
 * @author gaopengfei
 * @date 2015年6月2日 下午9:55:10
 */
public class Goddess {

	public static void main(String[] args) throws Exception {

		HumanFactory humanFactory = new ManFactory();
		Human man = humanFactory.createHuman("man");
		man.beat();

		humanFactory = new FemaleFactory();
		Human female = humanFactory.createHuman("female");
		female.beat();
	}

}
